/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2023-10-14 00:08:13
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2023-10-15 00:13:46
 */

//  房间-房间服务

import request from '@projectName/utils/request'

export function typeIndex(data) {
  return request({
    url: '/diandi_place/room/type/index',
    method: 'get',
    params: data
  })
}

export function typeList(data) {
  return request({
    url: '/diandi_place/room/type/list',
    method: 'get',
    params: data
  })
}

export function typeView(id) {
  return request({
    url: `/diandi_place/room/type/view/${id}`,
    method: 'get'
  })
}

export function typeCreate(data) {
  return request({
    url: '/diandi_place/room/type/create',
    method: 'post',
    data: data
  })
}

export function typeUpdate(data) {
  return request({
    url: `/diandi_place/room/type/update/${data.id}`,
    method: 'put',
    data: data
  })
}

export function typeDelete(id) {
  return request({
    url: `/diandi_place/room/type/delete/${id}`,
    method: 'delete'
  })
}

export function typeInit(data) {
  return request({
    url: '/diandi_place/room/type/init',
    method: 'get',
    data: data
  })
}

